import http from '@/request/http.js'
// export const login = params => http.post('/user_signup', params) // 登录
export const getUserPerks = params => http.get('/user_perks', { params })  // 获取权益
export const getRecommendCont = params => http.get('/mirror_get_recommend_content', { params })  // 获取拍一拍内容接口
export const getPastHistoryCont = params => http.get('/mirror_get_past_summary_content', { params })  // 获取传一传内容接口
export const getAboutCont = params => http.get('/mirror_lightApp_get_framework_list', { params })  // 获取传一传关于我关于他接口
export const getFrameworkList = params => http.get('/mirror_get_about_content', { params })  // 获取传一传关于我关于后续开通列表
export const onCheckImg = params => http.post('/mirror_parse_image', params)  // 获取传一传验证图片
export const getQiniuToken = () => http.post("/qiniu/auth", { bucket: "feeling-home" });
export const getQiniuTokenV2 = () => http.get("/api/v1/user_image_token");
// export const getContOfImg = params =>  http.post('/mirror/analysisImage', params) // 根据图片获取内容
export const orderPay = params => http.post("/api/v1/pay_order", params, true);

export const getTitle = params =>  http.get('/api/v1/contentTypeList',  { params } )  // 聚合页获取标题
export const getContentByType = params =>  http.get('/api/v1/contentWithType', { params } )  // 聚合页根据type获取内容
export const login = params => http.post("/api/v1/user_signup", params, true);

export const postUserUpdate = params => http.post("/api/v1/user_update", params, true);


export const getTodayLucky = params => http.get("/api/v1/get_wxday_content", {params}, true);



